import request from './http.js'
// const url1 = '/iot-api/api/v1/li-info'
// const url2 = '/warn-api/api/v1/alarm/intelligent'
// 总览信息
export const generalData = (params) => request({url: '/api/generalData', params})
// 查询小区楼栋列表
export const listData = (params) => request({url: '/api/listData', params})
// 单元门牌
export const tree = (params) => request({url: '/api/tree', params})
// 楼层用户信息
export const realtimeMeter = (params) => request({url: '/api/realtimeMeter', params})
// 实时监测
export const realtimeData = (params) => request({url: '/api/realtimeData', params})
// 用户占比/异常分析
export const userAccountPer = (params) => request({method: 'post',url: '/warm/userAccountPer', params})
// 异常对比
export const anomaly = (params) => request({method: 'post',url: '/warm/anomaly', params})
// 近30异常报警占比
export const monthAlramPer = (params) => request({method: 'post',url: '/warm/monthAlramPer', params})
// 报警列表
export const alramList = (params) => request({method: 'post',url: '/warm/alramList', params})
// 获取token
// export const username = (data) => request({url: '/auth-api/api/v1/uaa/auth/username', data})